import os

f = open('E:\\5.txt')
o = open('E:\\6.txt', 'w+')

for line in f.readlines():
    data = line.strip()
    if len(data) != 0:
        if "------WebKitFormBoundaryt9Kb39bJrB97jCR6" in line:
            continue
        if "Content-Disposition" not in line:
            line = ":" + line.replace(os.linesep, "")
        if "Content-Disposition" in line:
            line = line.split("=")[1]
            # line = line.strip('\n')
        # print(line.count('"'))
        # new_line = line.split(":")[0]
        # print(line)
        o.write(line)



